/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managerBeanViews;

import entity.Articles;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import processor.ArticlesFacade;

/**
 *
 * @author maynoigi
 */
@ManagedBean
@RequestScoped
public class NewsDetail {
    @EJB
    private ArticlesFacade articlesFacade;

    Articles article;
      public NewsDetail() {
        
    }
    public Articles getArticle() {
        return article;
    }

    public void setArticle(Articles article) {
        this.article = article;
    }
    public String articeleByID(int ID)
    {
        article = articlesFacade.getArticlesByArticlesID(ID);
        return "NewsDetail.xhtml";
    }
    
}
